package zhouheiya;

import java.util.Scanner;
import java.math.BigDecimal;

public class Main{
   public static void main(String[] args)
   {
      Scanner str = new Scanner(System.in);
      while(str.hasNextBigDecimal()){
    	  BigDecimal a = str.nextBigDecimal();
    	  BigDecimal b = str.nextBigDecimal();
    	  System.out .println(a.add(b));
    	  System.out .println(a.multiply(b));
      }
   }
}
